<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <button>点我获取图书列表</button>
    <script src="./assets/js/jquery-3.7.1.min.js"></script>
    <script>
        $('button').click(function(){
            $.ajax({
                type:'GET',
                url:'http://ajax-api.itheima.net/api/books',
                success:data  => {
                    console.log(data);
                }
            })
        })
    </script>
</body>
</html>